﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

//按钮的脚本要继承此类
public class CButton : MonoBehaviour
{
    protected Button m_button;

    protected virtual void Awake()
    {
        m_button = GetComponent<Button>();
    }

    private void Start()
    {
        m_button.onClick.AddListener(OnClick);
    }

    protected virtual void OnClick() { }
}
